package com.zk.iotgateway.netty.coder;

import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ByteToMessageCodec;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 *
 * 编解码一体
 * @author:mn.m
 * @create 2019-05-30 下午 03:57
 **/
@Component
@Scope("prototype")
public class LocateDecoder extends ByteToMessageCodec {

    /**
     * @Description 编码器
     * @Date 下午 04:02 2019/5/30 0030
     * @Param ctx
     * @return
     **/
    @Override
    protected void encode(ChannelHandlerContext ctx, Object msg, ByteBuf out) throws Exception {

    }

    /**
     *
     * @Description 解码器
     * @Date 下午 04:03 2019/5/30 0030
     * @Param
     * @return
     **/
    @Override
    protected void decode(ChannelHandlerContext ctx, ByteBuf in, List out) throws Exception {

    }
}
